import Layout from "@/layout";

const router = {
  path: "/system",
  component: Layout,
  redirect: "/system/list",
  name: "系统管理1",
  meta: { title: "系统管理", icon: "list" },
  children: [
    {
      path: "user",
      redirect: "/system/user/list",
      name: "用户管理2",
      component: () => import("@/views/system/user/index"),
      meta: { title: "用户管理", icon: "item" },
      children: [
        {
          path: "list",
          component: () => import("@/views/system/user/list/index"),
          name: "用户管理3",
          meta: {
            title: "用户管理",
            activeMenu: "/system/list",
            breadcrumb: false
          },
          hidden: true
        }
      ]
    },
    {
      path: "roles",
      redirect: "/system/roles/list",
      name: "角色管理1",
      component: () => import("@/views/system/roles/index"),
      meta: { title: "角色管理", icon: "item" },
      children: [
        {
          path: "list",
          component: () => import("@/views/system/roles/list/index"),
          name: "角色管理2",
          meta: {
            title: "角色管理",
            activeMenu: "/system/list",
            breadcrumb: false
          },
          hidden: true
        }
      ]
    },
    {
      path: "jigou",
      redirect: "/system/jigou/list",
      name: "机构管理1",
      component: () => import("@/views/system/jigou/index"),
      meta: { title: "机构管理", icon: "item" },
      children: [
        {
          path: "list",
          component: () => import("@/views/system/jigou/list/index"),
          name: "机构管理2",
          meta: {
            title: "机构管理",
            activeMenu: "/roles/list",
            breadcrumb: false
          },
          hidden: true
        }
      ]
    },
    {
      path: "menus",
      redirect: "/system/menus/list",
      name: "菜单管理1",
      component: () => import("@/views/system/menus/index"),
      meta: { title: "菜单管理", icon: "item" },
      children: [
        {
          path: "list",
          component: () => import("@/views/system/menus/list/index"),
          name: "菜单管理2",
          meta: {
            title: "菜单管理",
            activeMenu: "/menus/list",
            breadcrumb: false
          },
          hidden: true
        }
      ]
    },
    {
      path: "dictionary",
      redirect: "/system/dictionary/list",
      name: "字典管理1",
      component: () => import("@/views/system/dictionary/index"),
      meta: { title: "字典管理", icon: "item" },
      children: [
        {
          path: "list",
          component: () => import("@/views/system/dictionary/list/index"),
          name: "字典管理2",
          meta: {
            title: "字典管理",
            activeMenu: "/dictionary/list",
            breadcrumb: false
          },
          hidden: true
        }
      ]
    },
    {
      path: "logManage",
      redirect: "/system/logManage/list",
      name: "日志管理1",
      component: () => import("@/views/system/log/index"),
      meta: { title: "日志管理", icon: "item" },
      children: [
        {
          path: "list",
          component: () => import("@/views/system/log/list/index"),
          name: "日志管理2",
          meta: {
            title: "日志管理",
            activeMenu: "/logManage/list",
            breadcrumb: false
          },
          hidden: true
        }
      ]
    },
    {
      path: "terminalManage",
      redirect: "/system/terminalManage/list",
      name: "终端管理1",
      component: () => import("@/views/system/terminal/index"),
      meta: { title: "终端管理", icon: "item" },
      children: [
        {
          path: "list",
          component: () => import("@/views/system/terminal/list/index"),
          name: "终端管理2",
          meta: {
            title: "终端管理",
            activeMenu: "/terminalManage/list",
            breadcrumb: false
          },
          hidden: true
        }
      ]
    }
  ]
};
export default router;
